<template>
  <div>
    <collection-header></collection-header>
  </div>
</template>
<script>
import CollectionHeader from "@/pages/collection/components/Header";
export default {
  components: { 
    CollectionHeader,
    
  
  },
  beforeRouteEnter(to, from, next) {
    var UserToken=localStorage.getItem("UserToken");
    if (UserToken) {
       next();
    } else {
       next({ path: '/login', query: { historypath: "/collection" }});
    }
  }
};
</script>